export function useDeb(cb,time=400){
    let timer=null
    return ((...args)=>{
        timer=setTimeout(()=>{
            clearTimeout(timer)
            cb.apply(this,args)
        },time)
    })
}